<div style="width:800px; padding:10px 0px; margin:0px auto; ">
	<div style="padding:0; margin:0; float:left;">
		<?php echo $html->image($this->Html->url('/', true).'img/'.HOST."/logo_export.png")?>
	</div>
	<div style="clear:both; padding:0; margin:0; background:none;"></div>
	<div style = "height: 432px;  background: transparent url(<?php echo $this->Html->url('/', true)?>img/<?php echo HOST;?>/baner_export.jpg) center center no-repeat;">
	
	</div>
	<div style="clear:both; padding:0; margin:0; background:none;"></div>
</div>

<div style="width: 800px; padding: 0px; margin:0px auto; color: #678db4; font-family: Arial, Helvetica, sans-serif; font-size: 13px;">

	<div style="width: 190px; float: left; padding: 0px 10px 0px 0px; margin: 0px;">
		<h2 style="color: #678db4; font-family: Tw Cen MT Condensed, Arial, Helvetica, sans-serif; font-size: 25px; font-style: normal; font-variant: normal; font-weight: 100; line-height: normal; margin-bottom: 2px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 25px; padding-left: 40px; padding-right: 0px; padding-top: 0px; background-image: url(<?php echo $this->Html->url('/', true)?>img/<?php echo HOST;?>/h2-red.png); background-color: transparent;  background-position: 0px 3px; background-repeat: no-repeat;">
			<?php __d("store","Nowosci")?>
		</h2>
		<?php echo $this->element('store_export',array('plugin' => 'store',
			'items'=>$this->Store->products(2,array('limit'=>6))
			,'group_id'=>2
			,'params'=>array('width'=>178,'height'=>230,'padding'=>0,'margin'=>0,'border'=>1,'tools'=>false)
			));?>
		



		<?php // echo $this->Store->categories(true,'main')?>	
		

	</div>
	
	
	<div style="width: 400px; float: left; padding: 0px; margin: 0px;">
							
		<div style=" padding: 0px; margin: 0px; background: #ffffff; ">
			<h2 style="color: #678db4; font-family: Tw Cen MT Condensed, Arial, Helvetica, sans-serif; font-size: 25px; font-style: normal; font-variant: normal; font-weight: 100; line-height: normal; margin-bottom: 2px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 25px; padding-left: 40px; padding-right: 0px; padding-top: 0px; background-image: url(<?php echo $this->Html->url('/', true)?>img/<?php echo HOST;?>/h2-red.png); background-color: transparent;  background-position: 0px 3px; background-repeat: no-repeat;"><?php echo $storeProduct['StoreProduct']['name']; ?></h2>
			<div>
				<span ><?php echo __d('store','Cena: ',true)?></span> 
			    <?php if($storeProduct['StoreProduct']['price_przecena'] > 0 && $storeProduct['StoreProduct']['price_promocja'] == 0){?>
						<span  style="text-decoration: none; font-size: 22px; font-weight: bold; color: #ea0000"><?php echo $this->Store->price($storeProduct['StoreProduct']['price_przecena'],2,'',null,$storeProduct['StoreProduct']['currency_id'],$storeProduct['StoreCurrency']['exchange'])?></span> 
						<span  style="text-decoration: line-through;"><?php echo $this->Store->price($storeProduct['StoreProduct']['price_detaliczna'],2,'',null,$storeProduct['StoreProduct']['currency_id'],$storeProduct['StoreCurrency']['exchange']);?></span> 
				<?php }else if( $storeProduct['StoreProduct']['price_promocja'] > 0){?>
						<span style="text-decoration: none; font-size: 22px; font-weight: bold; color: #ea0000"><?php echo $this->Store->price($storeProduct['StoreProduct']['price_promocja'],2,'',null,$storeProduct['StoreProduct']['currency_id'],$storeProduct['StoreCurrency']['exchange'])?></span> 
						 <span  style="text-decoration: line-through;"><?php echo $this->Store->price($storeProduct['StoreProduct']['price_detaliczna'],2,'',null,$storeProduct['StoreProduct']['currency_id'],$storeProduct['StoreCurrency']['exchange']);?></span>
				<?php }else{?>
						<span style="text-decoration: none; font-size: 22px; font-weight: bold; color: #ea0000"><?php echo $this->Store->price($storeProduct['StoreProduct']['price_detaliczna'],2,'',null,$storeProduct['StoreProduct']['currency_id'],$storeProduct['StoreCurrency']['exchange'])?></span>
				<?php }?>	
               <?php echo $storeProduct['StoreUnit']['name']?>				
			</div>
			<div>					
				<?php echo $storeProduct['StoreModel']['name']; ?>		
				<?php $ilosc_typow = count($storeProduct['StoreType']);?>
				<?php if($ilosc_typow != 0){?>
				<br/>
				<?php foreach ($storeProduct['StoreType'] as $type) {?>					
					<?php echo $type['name']; ?><br/>
				<?php }}?>
			
			</div>
			<div style="clear:both; padding:0; margin:20px; background:none;"></div>
			
			<?php echo $html->image( $this->Html->url('/', true).$fileUpload->image($storeProduct['StoreUpload']['name'],array('autoResize'=>true,'width'=>'390','imagePathOnly'=>true)));?>
			<?php foreach ($storeProduct['StoreUpload'] as $key => $img) {
				if(is_array($img) && !empty($img)){?>
				<?php echo $html->image( $this->Html->url('/', true).$fileUpload->image($img['name'],array('autoResize'=>true,'width'=>'390','imagePathOnly'=>true,'title'=>$storeProduct['StoreProduct']['name'])));?>							
			<?php }}?>
			
			<div style="clear:both; padding:0; margin:20px; background:none;"></div>
			<?php if(!empty($storeProduct['StoreProduct']['content'])){?>
			<?php echo $storeProduct['StoreProduct']['content']; ?>
			<?php }?>		

			<h2 style="color: #678db4; font-family: Tw Cen MT Condensed, Arial, Helvetica, sans-serif; font-size: 25px; font-style: normal; font-variant: normal; font-weight: 100; line-height: normal; margin-bottom: 2px; margin-left: 0px; margin-right: 0px; margin-top: 60px; padding-bottom: 25px; padding-left: 40px; padding-right: 0px; padding-top: 0px; background-image: url(<?php echo $this->Html->url('/', true)?>img/<?php echo HOST;?>/h2-red.png); background-color: transparent;  background-position: 0px 3px; background-repeat: no-repeat;">
				<?php __d("store","Kontakt")?>
			</h2>
			<?php echo (!empty($sprzedawca['Employee'][0]['company']))? $sprzedawca['Employee'][0]['company'].'<br/>' : '';?>
			<?php echo (!empty($sprzedawca['Employee'][0]['address1']))? $sprzedawca['Employee'][0]['address1'].'<br/>' : '';?>
			<?php echo (!empty($sprzedawca['Employee'][0]['address2']))? $sprzedawca['Employee'][0]['address2'].'<br/>' : '';?>
			<?php echo (!empty($sprzedawca['Employee'][0]['address3']))? $sprzedawca['Employee'][0]['address3'].'<br/>' : '';?>
			<?php echo (!empty($sprzedawca['Employee'][0]['address4']))? $sprzedawca['Employee'][0]['address4'].'<br/>' : '';?>
			<?php echo (!empty($sprzedawca['User']['eamil']))? $sprzedawca['User']['email'].'<br/>' : '';?>
			<?php echo (!empty($sprzedawca['Employee'][0]['phone1']))? $sprzedawca['Employee'][0]['phone1'].'<br/>' : '';?>
			<?php echo (!empty($sprzedawca['Employee'][0]['phone2']))? $sprzedawca['Employee'][0]['phone2'].'<br/>' : '';?>
			<?php echo (!empty($sprzedawca['Employee'][0]['phone3']))? $sprzedawca['Employee'][0]['phone3'].'<br/>' : '';?>
			<?php echo (!empty($sprzedawca['Employee'][0]['phone4']))? __d('store','tel.: ',true).$sprzedawca['Employee'][0]['phone4'].'<br/>' : '';?>
			<div style="clear:both; padding:0; margin:0; background:none;"></div>		
		</div>
	
	</div>
	
	<div  style="width: 190px; float: right; padding: 0px 0px 0px 10px; margin: 0px;  color: #ea0000;">
		<h2 style="color: #678db4; font-family: Tw Cen MT Condensed, Arial, Helvetica, sans-serif; font-size: 25px; font-style: normal; font-variant: normal; font-weight: 100; line-height: normal; margin-bottom: 2px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 25px; padding-left: 40px; padding-right: 0px; padding-top: 0px; background-image: url(<?php echo $this->Html->url('/', true)?>img/<?php echo HOST;?>/h2-red.png); background-color: transparent;  background-position: 0px 3px; background-repeat: no-repeat;">
			<?php __d("store","Promocje")?>
		</h2>
		<?php echo $this->element('store_export',array('plugin' => 'store',
			'items'=>$this->Store->products(1,array('limit'=>3))
			,'group_id'=>1
			,'params'=>array('width'=>178,'height'=>230,'padding'=>0,'margin'=>0,'border'=>1,'tools'=>false)
			));?>
							

			
		
		<h2 style="color: #678db4; font-family: Tw Cen MT Condensed, Arial, Helvetica, sans-serif; font-size: 25px; font-style: normal; font-variant: normal; font-weight: 100; line-height: normal; margin-bottom: 2px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 25px; padding-left: 40px; padding-right: 0px; padding-top: 0px; background-image: url(<?php echo $this->Html->url('/', true)?>img/<?php echo HOST;?>/h2-red.png); background-color: transparent;  background-position: 0px 3px; background-repeat: no-repeat;">
			<?php __d("store","Przeceny")?>
		</h2>
		<?php echo $this->element('store_export',array('plugin' => 'store',
			'items'=>$this->Store->products(3,array('limit'=>3))
			,'group_id'=>3
			,'params'=>array('width'=>178,'height'=>230,'padding'=>0,'margin'=>0,'border'=>1,'tools'=>false)
			));?>			
	</div>
	
	<div style="clear:both; padding:0; margin:0; background:none;"></div>
	<h2 style="color: #678db4; font-family: Tw Cen MT Condensed, Arial, Helvetica, sans-serif; font-size: 25px; font-style: normal; font-variant: normal; font-weight: 100; line-height: normal; margin-bottom: 2px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 25px; padding-left: 40px; padding-right: 0px; padding-top: 0px; background-image: url(<?php echo $this->Html->url('/', true)?>img/<?php echo HOST;?>/h2-red.png); background-color: transparent;  background-position: 0px 3px; background-repeat: no-repeat;">
		<?php __d("store","Oferujemy")?>
	</h2>	
	<div style="font-size: 11px; color: #666666; font-style: normal; text-decoration:none;"><?php echo $this->Store->categories(true,'list')?></div>		
</div>